<% 
DIRECTIVE SAFE_OUTPUT_OPEN;
var headContent = {
	include("/pages/template/head.html"){}
%>
<script type="text/javascript">
	var oper = {
		save:function(id){
			if(!validForm()) {
				return false;
			}
			var url = 'system/cxoperator/save/'+id;
			form1.action = url;
			form1.submit();
			return true;
		}	
	};
</script>

<%
};
var bodyContent = {
%>
<form name="form1" action="" method="post" class="form-horizontal"
		role="form" >
	<input type="hidden" name="model.ids" value="${model.ids}" />
	<table class="table">
		<%  // 列表头部%>
				
				<tr>
					<td>模块名称</td>
					<td>
							   	<select name="model.modulenames" class="form-control" valid="vselect" validname="请选择模块">
								<option value="-1">--请选择模块名称--</option>
								${selectMoudle }
								</select>
					</td>
				</tr>
				<tr>
					<td>功能名称</td>
					<td>
					<input class="form-control" type="text" name="model.names" value="${model.names }"  valid="vtext" validname="名称" />
					</td>
				</tr>
				<tr>
					<td>链接地址</td>
					<td>
					<input class="form-control" type="text" name="model.url" value="${model.url }"  />
					</td>
				</tr>
				<tr>
					<td>权限验证</td>
					<td>
						<label class="radio-inline">
						  <input type="radio" name="model.privilegess" id="" value="0"  ${model.privilegess=="0"?"checked":"" } > 是
						</label>
						<label class="radio-inline">
						  <input type="radio" name="model.privilegess" id="" value="1"  ${model.privilegess!="0"?"checked":"" } > 否
						</label>
					</td>
				</tr>
				<tr>
					<td>是否分页</td>
					<td>
						<label class="radio-inline">
						  <input type="radio" name="model.splitpage" id="" value="0"  ${model.splitpage=="0"?"checked":"" } > 是
						</label>
						<label class="radio-inline">
						  <input type="radio" name="model.splitpage" id="" value="1"  ${model.splitpage!="0"?"checked":"" } > 否
						</label>
					</td>
				</tr>
				<tr>
					<td>行级过滤</td>
					<td>
						<label class="radio-inline">
						  <input type="radio" name="model.rowfilter" id="" value="0"  ${model.rowfilter=="0"?"checked":"" } > 是
						</label>
						<label class="radio-inline">
						  <input type="radio" name="model.rowfilter" id="" value="1"  ${model.rowfilter!="0"?"checked":"" } > 否
						</label>
					</td>
				</tr>
				<tr>
					<td>重复提交验证</td>
					<td>
						<label class="radio-inline">
						  <input type="radio" name="model.formtoken" id="" value="0"  ${model.formtoken=="0"?"checked":"" } > 是
						</label>
						<label class="radio-inline">
						  <input type="radio" name="model.formtoken" id="" value="1"  ${model.formtoken!="0"?"checked":"" } > 否
						</label>
					</td>
				</tr>
				<tr>
					<td>IP验证</td>
					<td>
						<label class="radio-inline">
						  <input type="radio" name="model.ipblack" id="" value="0"  ${model.ipblack=="0"?"checked":"" } > 是
						</label>
						<label class="radio-inline">
						  <input type="radio" name="model.ipblack" id="" value="1"  ${model.ipblack!="0"?"checked":"" } > 否
						</label>
					</td>
				</tr>
	</table>
	
	<div style="height: 50px;clear: both;">&nbsp;</div>
	<nav class="navbar navbar-default navbar-fixed-bottom">
	  <div class="container" style="padding: 5px 0px 5px 0px;text-align: center;">
		<button class="btn btn-primary" onclick="oper.save('${model.ids}');return false;">保 存</button>
		<button class="btn btn-default" onclick="closeIframe();return false;">关 闭</button>
	  </div>
	</nav>
</form>
<%}; %>

<% layout("/pages/template/_layout.html",{head:headContent,body:bodyContent}){ %>
<%}
DIRECTIVE SAFE_OUTPUT_CLOSE; 
%>